<?php

namespace api\controller;

// +----------------------------------------------------------------------
// | 租户成员申请管理接口控制层
// +----------------------------------------------------------------------

use common\controller\VerifyController;
use common\service\TenantApplyService;
use think\Request;

class TenantApplyController extends VerifyController
{

    private $tenantApplyService;

    public function __construct()
    {
        parent::__construct();
        $this->tenantApplyService = new TenantApplyService();
    }

    /**
     * 获取申请列表
     * @param Request $request
     * @return \think\Response
     */
    public function getMyApply(Request $request)
    {
        $params = $request->param();
        $resData = $this->tenantApplyService->getMyApply($request->userId, $params);
        return json(success_response('', $resData));
    }
}